package plane;

import mainwindow.Window;

public class Bullet extends FlyingObject{
    private int speed = 3;

    public Bullet(){
    }

    public Bullet(int x,int y){
        this.image = Window.bullet;
        imageWidth = image.getWidth();
        imageHeight = image.getHeight();
        this.x = x;
        this.y = y;
        this.health = 1;
    }

    @Override
    public void move() {
        y -= speed;
    }

}
